package com.synergy.stockflow.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name = "文件上传", description = "用于系统的文件上传接口")
@RequestMapping("/upload")
public class UploadController {

    /**
     * multipart/form-data
     */
    @GetMapping("/{id}")
    public String load(@PathVariable("id") String id) {
        return id;
    }

    @PostMapping("/single")
    @Operation(description = "单文件上传")
    public void single() {

    }

    /**
     * 消息格式 application/json
     */

    @PostMapping("/base64")
    @Operation(description = "base64 上传")
    public void base64() {

    }

    /**
     * 消息格式 application/octet-stream (binary)
     */
    @PostMapping("/binary")
    @Operation(description = "二进制格式上传")
    public void binary() {

    }


    /**
     * multipart/form-data
     */
    @PostMapping("/multi")
    @Operation(description = "多文件上传")
    public void multi() {

    }

    @GetMapping("/large/verify")
    @Operation(description = "大文件分片上传")
    public String large(String hash) {
        return "";
    }
}
